CC=gcc
CFLAGS=-O3
TARGET=mandelbrot

all: $(TARGET)

iteration.o: iteration.c
	$(CC) -o $@ -c $< $(CFLAGS)

$(TARGET): main.c iteration.o
	$(CC) -o $@ $^ $(CFLAGS)

clean:
	rm -f *.o

cleanall: clean
	rm -f $(TARGET)
